<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改预算材料总计划')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-plan-edit" th:object="${sysMaterialPlan}">
            <input name="matId" th:field="*{matId}" type="hidden">
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料类型：</label>
                <div class="col-sm-8">
                    <select name="matType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
<!--                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料分类：</label>
                <div class="col-sm-8">
                    <input name="matClassification" th:field="*{matClassification}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料数据：</label>
                <div class="col-sm-8">
                    <input name="matData" th:field="*{matData}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">材料详情：</label>
                <div class="col-sm-8">
                    <input name="matDetails" th:field="*{matDetails}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">材料数量：</label>
                <div class="col-sm-8">
                    <input name="matNumber" th:field="*{matNumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">项目外键：</label>
                <div class="col-sm-8">
                    <input name="mId" th:field="*{mId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden>
                <label class="col-sm-3 control-label">采购数量：</label>
                <div class="col-sm-8">
                    <input name="mMolecule" th:field="*{mMolecule}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "ruoyi/plan";
        $("#form-plan-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-plan-edit').serialize());
            }
        }
    </script>
</body>
</html>